package com.hedd.shop.pojo.entity;

import io.swagger.annotations.ApiModel;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ludi
 * @date:2020/8/31 22:27
 * @description:订单类
 */
@ApiModel("订单对象")
public class Order {
    private Integer orderId;
    private Integer userId;
    private Address address;
    private Date orderCreatedTime;
    private Integer orderStatus;
    private BigDecimal integral;
    private BigDecimal totalPrice;

    public Order() {
    }

    public Order(Integer orderId, Integer userId, Address address, Date orderCreatedTime,
                 Integer orderStatus, BigDecimal integral, BigDecimal totalPrice) {
        this.orderId = orderId;
        this.userId = userId;
        this.address = address;
        this.orderCreatedTime = orderCreatedTime;
        this.orderStatus = orderStatus;
        this.integral = integral;
        this.totalPrice = totalPrice;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Date getOrderCreatedTime() {
        return orderCreatedTime;
    }

    public void setOrderCreatedTime(Date orderCreatedTime) {
        this.orderCreatedTime = orderCreatedTime;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public BigDecimal getIntegral() {
        return integral;
    }

    public void setIntegral(BigDecimal integral) {
        this.integral = integral;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", address=" + address +
                ", orderCreatedTime=" + orderCreatedTime +
                ", orderStatus=" + orderStatus +
                ", integral=" + integral +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
